package com.scalar.chiptrack.adaptor.utils;

import java.io.File;

/**
 * User: sujan
 * Date: Dec 5, 2008
 * Time: 3:56:44 PM
 */
public class ParserFactory
{
    public static Parser getXLSParser( File file )
    {
        return new XLSParserImpl( file );
    }
    public static Parser getXLSParser( File file, String sheetName )
    {
        return new XLSParserImpl( file, sheetName );
    }
    public static Parser getXLSParser( File file, int sheetIdx )
    {
        return new XLSParserImpl( file, sheetIdx );
    }
    public static Parser getXLSParser( String filePath, String fileName, int sheetIdx )
    {
        return  new XLSParserImpl( filePath, fileName, sheetIdx );
    }
    public static Parser getXLSParser( String filePath, String fileName, String sheetName )
    {
        return  new XLSParserImpl( filePath, fileName, sheetName );
    }
    
    public static Parser getJXLXLSParser( File file )
    {
        return new JXLXLSParserImpl( file );
    }
    public static Parser getJXLXLSParser( File file, String sheetName )
    {
        return new JXLXLSParserImpl( file, sheetName );
    }
    public static Parser getJXLXLSParser( File file, int sheetIdx )
    {
        return new JXLXLSParserImpl( file, sheetIdx );
    }
    public static Parser getJXLXLSParser( String filePath, String fileName, int sheetIdx )
    {
        return  new JXLXLSParserImpl( filePath, fileName, sheetIdx );
    }
    public static Parser getJXLXLSParser( String filePath, String fileName, String sheetName )
    {
        return  new JXLXLSParserImpl( filePath, fileName, sheetName );
    }
    public static Parser getCSVParser( File file )
    {
        return new CSVParserImpl( file );
    }
    public static Parser getCSVParser( String filePath, String fileName )
    {
        return new CSVParserImpl( filePath, fileName );
    }
    public static Parser getCSVParser( File file, char separator )
    {
        return new CSVParserImpl( file, separator );
    }
    public static Parser getCSVParser( File file, char separator, char quotechar )
    {
        return new CSVParserImpl( file, separator, quotechar );
    }
}
